package com.zuorenke.vertx.handler;

import com.zuorenke.help.ResponseUtils;
import com.zuorenke.model.constants.Constants;
import com.zuorenke.vertx.anno.Order;
import com.zuorenke.vertx.standard.PostHandler;
import io.vertx.ext.web.RoutingContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author Z.R.K
 * @description
 * @create 2019-05-14 11:35:53
 **/
@Component
@Order
@Slf4j
public class ResponseEndPostHandler implements PostHandler<RoutingContext> {
	@Override
	public void handle(RoutingContext event) {
		ResponseUtils.responseResult(event.response(), event.get(Constants.WEB_RESULT));
	}
}
